package com.lgl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lgl.dto.AddRoleDto;
import com.lgl.dto.RoleDto;
import com.lgl.dto.UpdateRoleDto;
import com.lgl.entity.ResponseResult;
import com.lgl.entity.Role;

import java.util.List;

public interface RoleService extends IService<Role> {

    List<String> selectRoleKeyByUserId(Long id);
    List<Role> selectRoleByUserId(Long id);

    ResponseResult getRoleList(Integer pageSize, Integer pageNum, String roleName, String status);

    ResponseResult changeStatus(RoleDto roleDto);

    ResponseResult addRole(AddRoleDto addRoleDto);

    ResponseResult getRole(Long id);

    ResponseResult updateRole(UpdateRoleDto updateRoleDto);

    ResponseResult deleteRole(Long id);

    ResponseResult listAllRole();

}

